-
JPanel()
- Create a new JPanel with a double buffer and a flow layout
-
JPanel(boolean)
- Create a new JPanel with FlowLayout and the specified buffering
strategy.
-
JPanel(LayoutManager)
- Create a new buffered JPanel with the specified layout manager
-
JPanel(LayoutManager, boolean)
- Creates a new JPanel with the specified layout manager and buffering
strategy.
-
getAccessibleContext()
- Get the AccessibleContext associated with this JComponent
-
paintComponent(Graphics)
- Overriden from JComponent, paint the backgroud if the component is opaque.
-
updateUI()
- PENDING(jeff) - this should be done in BasicPanelUI
JPanel
public JPanel(LayoutManager layout,
boolean isDoubleBuffered)
- Creates a new JPanel with the specified layout manager and buffering
strategy.
- Parameters:
- layout - the LayoutManager to use
- isDoubleBuffered - a boolean, true for double-buffering, which
uses additional memory space to achieve fast, flicker-free
updates
JPanel
public JPanel(LayoutManager layout)
- Create a new buffered JPanel with the specified layout manager
- Parameters:
- layout - the LayoutManager to use
JPanel
public JPanel(boolean isDoubleBuffered)
- Create a new JPanel with FlowLayout and the specified buffering
strategy. If
isDoubleBuffered
is true, the JPanel
will use a double buffer.
- Parameters:
- layout - the LayoutManager to use
- isDoubleBuffered - a boolean, true for double-buffering, which
uses additional memory space to achieve fast, flicker-free
updates
JPanel
public JPanel()
- Create a new JPanel with a double buffer and a flow layout
updateUI
public void updateUI()
- PENDING(jeff) - this should be done in BasicPanelUI
- Overrides:
- updateUI in class JComponent
paintComponent
public void paintComponent(Graphics g)
- Overriden from JComponent, paint the backgroud if the component is opaque.
The color used is the one returned by getBackground()
Override this method if you want to change how the JPanel paints its background.
- Parameters:
- g - the Graphics context in which the painting occurs
- Overrides:
- paintComponent in class JComponent
getAccessibleContext
public AccessibleContext getAccessibleContext()
- Get the AccessibleContext associated with this JComponent
- Returns:
- the AccessibleContext of this JComponent
- Overrides:
- getAccessibleContext in class JComponent
All Packages Class Hierarchy This Package Previous Next Index